From: Florian Müllner Date: Thu, 13 Nov 2014 12:20:44 +0000 (+0000) Subject: environment: Define N_() globally X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1976 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=facaea6850eabeac8db783fd7189619c5422acf8;p=gnome-shell.git environment: Define N_() globally Commit 1291bcd0c84 implemented it for dateMenu, but the function is already used in screenShield as well. Just add it globally as we do for other standard gettext "macros". --- diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index 260b5ec7f..7ff75f788 100644 --- a/js/ui/dateMenu.js +++ b/js/ui/dateMenu.js @@ -19,8 +19,6 @@ const PanelMenu = imports.ui.panelMenu; const PopupMenu = imports.ui.popupMenu; const Calendar = imports.ui.calendar; -const N_ = function(s) { return s; }; - function _onVertSepRepaint(area) { let cr = area.get_context(); let themeNode = area.get_theme_node(); diff --git a/js/ui/environment.js b/js/ui/environment.js index 3144ec686..a35c626f4 100644 --- a/js/ui/environment.js +++ b/js/ui/environment.js @@ -77,6 +77,7 @@ function init() { window._ = Gettext.gettext; window.C_ = Gettext.pgettext; window.ngettext = Gettext.ngettext; + window.N_ = function(s) { return s; }; // Miscellaneous monkeypatching _patchContainerClass(St.BoxLayout);